#ifndef __SQUARE_INCLUDE
#define __SQUARE_INCLUDE

#include "polygon.h"

/**
  Class which implements a square.
*/
class Square : public Polygon {
    public:
        /** Default constructor
            Parameters:
                int length - the length of all edges
        */        
        Square(int);
        
        /** Overriden from Polygon.  Prints the area of the square. */        
        void area();

        /** Overriden from Polygon.  Prints the perimeter of the square. */        
        void perimeter();

        /** Overriden from Polygon.  No-op because a square is 2D */        
        void volume();

    protected:
        /** Instance variable containing the length of this instance */
        int l;
};

#endif